/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase2203 - Demo2
 * <p>Powered by webrx On 2022-07-19 16:02:18
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo2 {
    public static void main(String[] args) {

        System.out.println(Student.pf(11));


        System.out.println("-------------------实例化无参构造方法");
        Student st = new Student();


        System.out.println("-------------------直接调用静态方法");
        int p = Student.pf(17);
        System.out.println(p);

        System.out.println("-------------------再次实例化对象");
        Student lisi = new Student(66,"李四");
        int p2 = lisi.pf(6);
        System.out.println(p2);
    }
}
